import Api from '@/api/finance/betRefundsRecords'
import i18n from "@/lang/index";
const contentConfig = {
  pageName: "sys:user",
  table: {
    border: true,
    highlightCurrentRow: false,
  },
  indexAction: (data) => {
    console.log("index", data);
    return new Promise((resolve, reject) => {
      Api.getList(data).then(s => {
        console.log(s);
        resolve(s)
      }).catch(e => {
        console.log(e);
        reject(e)
      })
    });
  },
  deleteAction: function (id) {
 
  },
  exportAction: function (queryParams) {
    // 导出Excel文件
    // return exportUser(queryParams);
  },
  pk: "id",
  toolbar: [
    "refresh",
    // "add",
    // "delete",
    // "export",
    // {
    //   name: "import",
    //   icon: "upload",
    //   text: "导入",
    //   auth: "import",
    // },
  ],
  cols: [
    { label: i18n.global.t("label.15"), align: "center", prop: "user_id",fixed: "left" },
    { label: i18n.global.t("label.9"), align: "center", prop: "user.username", width: 150 ,fixed: "left"},
    { label: i18n.global.t("label.119"), align: "center", prop: "ulid", width: 250 ,fixed: "left"},

    { label: i18n.global.t("label.145"), align: "center", prop: "refund_amount" },
    { label: i18n.global.t("label.3"), align: "center", prop: "balance", },

    { label: i18n.global.t("label.12"), align: "center", prop: "currency_code" },

    { label: i18n.global.t("label.134"), align: "center", "type": "time", prop: "created_at", minWidth: 180 },
    { label: i18n.global.t("label.133"), align: "center", "type": "time", prop: "updated_at", minWidth: 180,fixed:"right" },
    
  ],
};

export default contentConfig;
